<form id="addOrUpdateForm" lay-filter="addOrUpdateForm" class="layui-form model-form">

  <input name="id" type="hidden"/>

  <div class="layui-form-item">
    <label class="layui-form-label">地区:</label>
    <div class="layui-input-block">
      <select name="ryplace">
        <option value="">--请选择地区--</option>
        <option value="南岗区">南岗区</option>
        <option value="香坊区">香坊区</option>
        <option value="道里区">道里区</option>
        <option value="道外区">道外区</option>
        <option value="松北区">松北区</option>
        <option value="呼兰区">呼兰区</option>
        <option value="平房区">平房区</option>
        <option value="双城区">双城区</option>
        <option value="阿城区">阿城区</option>
      </select>
    </div>
  </div>


  <div class="layui-form-item text-right">
    <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
    <button class="layui-btn" type="button"  id="kkkk" >保存</button>
  </div>
</form>

<script>
  layui.use(['layer', 'form', 'admin', 'xnUtil', 'xmSelect', 'laydate'], function () {
    var $ = layui.jquery;
    var layer = layui.layer;
    var form = layui.form;
    var admin = layui.admin;
    var xnUtil = layui.xnUtil;
    var xmSelect = layui.xmSelect;
    var laydate = layui.laydate;

/*    var reportspeciesRenderIns = xmSelect.render({
      el: '#reportspeciesId',
      name: 'reportspecies',
      data: xnUtil.getDictDataByDictTypeCode('emergencyreporttypes', null),
      layVerify: 'required',
      layVerType: 'tips',
      radio: true,
      clickClose: true,
      model: { icon:'hidden', label: { type: 'text' }},
      prop: {
        name: 'name',
        value: 'code'
      },
      tips: '请选择应急上报种类'
    }, {async: false});

    laydate.render({
      elem: '#eventtimeId'
    });*/

    var editData = admin.getLayerData('#addOrUpdateForm').data;
    if(editData !== null && editData !== undefined) {
      form.val('addOrUpdateForm', editData);
      // 下拉赋值
/*
      reportspeciesRenderIns.setValue([editData.reportspecies]);
*/

    }


      $("#kkkk").click(function() {
        layer.msg("分配成功！", {icon: 1, time: 3000});
        admin.putLayerData('formOk', true, '#addOrUpdateForm');
        admin.closeDialog('#addOrUpdateForm');
      });

    /**
     * 表单提交事件
     */
/*    form.on('submit(formSubmitBtn)', function () {
      layer.msg("分配成功！", {icon: 1, time: 3000});
        layer.msg("分配成功！", {icon: 1, time: 1000}, function () {
          admin.putLayerData('formOk', true, '#addOrUpdateForm');
          admin.closeDialog('#addOrUpdateForm');
        });
      return false;
    });*/
  });
</script>
</body>
</html>
